package com.jboost.modules.app.dto;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class XmFieldDto {
    /**
     * code : 200
     * message : success
     * now : 2019-08-26 15:44:50
     * data : [{"id":"city","name":"城市","base":1,"field_type":3,"ext_info":null,"require":0,"default":""},{"id":"star","name":"客户星级","base":1,"field_type":5,"ext_info":null,"require":0,"default":""},{"id":"remark","name":"备注","base":1,"field_type":2,"ext_info":null,"require":0,"default":""},{"id":"group_id","name":"分组","base":1,"field_type":3,"ext_info":null,"require":0,"default":""},{"id":"image_list","name":"图片","base":1,"field_type":6,"ext_info":null,"require":0,"default":""},{"id":"pool_id","name":"公海分组","base":1,"field_type":3,"ext_info":null,"require":1,"default":"0"},{"id":"cus_tag","name":"客户标签","base":1,"field_type":7,"ext_info":null,"require":0,"default":""},{"id":"trail_status","name":"客户状态","base":1,"field_type":3,"ext_info":null,"require":0,"default":""},{"id":"country","name":"国家地区","*                  base":1,"field_type":3,"ext_info":null,"require":0,"default":""},{"id":"timezone","name":"时区","base":1,"field_type":3,"ext_info":null,"require":0,"default":""},{"id":"name","name":"公司名称","base":1,"field_type":1,"ext_info":null,"require":1,"default":""},{"id":"biz_type","name":"客户类型","base":1,"field_type":3,"ext_info":null,"require":0,"default":""},{"id":"origin","name":"客户来源","base":1,"field_type":3,"ext_info":null,"require":0,"default":""},{"id":"province","name":"省份","base":1,"field_type":3,"ext_info":null,"require":0,"default":""},{"id":"fax","name":"传真","base":1,"field_type":1,"ext_info":null,"require":0,"default":""},{"id":"scale_id","name":"规模","base":1,"field_type":3,"ext_info":null,"require":0,"default":""},{"id":"serial_id","name":"客户编号","base":1,"field_type":5,"ext_info":null,"require":1,"default":""},{"id":"short_name","name":"简称","base":1,"field_type":1,"ext_info":null,"require":0,"default":""},{"id":"homepage","name":"主页","base":1,"field_type":1,"ext_info":null,"require":0,"default":""},{"id":"tel","name":"座机","base":1,"field_type":1,"ext_info":null,"require":0,"default":""},{"id":"address","name":"联系地址","base":1,"field_type":1,"ext_info":null,"require":0,"default":""},{"id":"category_ids","name":"主营产品","base":1,"field_type":7,"ext_info":null,"require":0,"default":""}]
     */

    private int code;
    private String message;
    private String now;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getNow() {
        return now;
    }

    public void setNow(String now) {
        this.now = now;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : city
         * name : 城市
         * base : 1
         * field_type : 3
         * ext_info : null
         * require : 0
         * default :
         * *                  base : 1
         */

        private String id;
        private String name;
        private int base;
        private int field_type;
        private Object ext_info;
        private int require;
        @SerializedName("default")
        private String defaultX;
        @SerializedName("*                  base")
        private int _$Base92; // FIXME check this code

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getBase() {
            return base;
        }

        public void setBase(int base) {
            this.base = base;
        }

        public int getField_type() {
            return field_type;
        }

        public void setField_type(int field_type) {
            this.field_type = field_type;
        }

        public Object getExt_info() {
            return ext_info;
        }

        public void setExt_info(Object ext_info) {
            this.ext_info = ext_info;
        }

        public int getRequire() {
            return require;
        }

        public void setRequire(int require) {
            this.require = require;
        }

        public String getDefaultX() {
            return defaultX;
        }

        public void setDefaultX(String defaultX) {
            this.defaultX = defaultX;
        }

        public int get_$Base92() {
            return _$Base92;
        }

        public void set_$Base92(int _$Base92) {
            this._$Base92 = _$Base92;
        }
    }
}
